import request from "@/apis/fetch";

/**
 * 登录
 * @param {Login} data
 */
export const login = (data) => {
  return request({
    method: "post",
    url: "/api/v1/login",
    data,
  });
};


/**
 * 退出登录
 */
export const logout = data => {
    return request({
      method: 'delete',
      url: '/api/v1/login',
      data
    })
  }
  

  // export const loginClient = (data) => {
  //   return request({
  //     method: "get",
  //     url: "/h5-api/api/v1/external-customers/login",
  //     data,
  //     headers:{ 'Content-Type': 'application/json'}
  //   });
  // };


  export const loginClient = (data) => {
    return request({
      method: "get",
      url: "/h5-api/api/v1/real-live/login",
      data,
      // headers:{ 'Content-Type': 'application/json'}
    });
  };